#ifndef _ADPCM_H_
#define _ADPCM_H_

struct adpcm_state
{
	int valprev;
	int index;
};

#ifdef __cplusplus
extern "C" {
#endif

	void adpcm_encoder(short indata[], char outdata[], int len, struct adpcm_state* state);
	void adpcm_decoder(char indata[], short outdata[], int len, struct adpcm_state* state);

#ifdef __cplusplus
}
#endif

#endif
